package com.suixinsanren.design.singleton.demo03;

import com.suixinsanren.design.singleton.demo.demo03.HungerStyleSingle;
import com.suixinsanren.design.singleton.demo.demo03.LazyStyleSingle;
import org.junit.Test;

public class UniqueInstanceTestDrive {

    @Test
    public void testHungerStyleSingle() {
        HungerStyleSingle instance = HungerStyleSingle.getUniqueInstance();
        System.out.println(instance);
    }

    @Test
    public void testLazyStyleSingle() {
        LazyStyleSingle instance = LazyStyleSingle.getUniqueInstance();
        System.out.println(instance);
    }
}
